package com.zplus.managers.petservices.services;


import com.zplus.managers.petservices.entities.Admin;

import java.util.List;

public interface AdminService
{
    /**
     * register a new admin
     * @param ad info of new admin
     * @return true if success, false otherwise
     */
    boolean register(Admin ad);

    /**
     * delete an admin
     * @param ad admin to be deleted
     * @return true if success, false otherwise
     */
    boolean deleteAdmin(Admin ad);

    /**
     * check login
     * @return true if account matches, false othewise
     */
    Admin checkLogin(Admin ad);

    Admin getAdminById(int id);

    List<Admin> getAllAdmin();

    Admin getAdminByNickname(String nickname);
}
